package com.ymy.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.*;

@Getter
@Setter
public class UserVo {


    @NotEmpty(message = "用户名不能为空")
    private String userName;

    @NotEmpty(message = "手机号不能为空")
    private String phone;

    @NotEmpty(message = "邮箱不可为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    @Min(0)
    @Max(120)
    @NotNull(message = "年龄必填")
    private Integer age;
}
